<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<div id="lynn-salary-Asign-9" style="float:left;   overflow:auto;border-width: 2px;border-style: groove;border-color: rgb(238,244,245); width: 180px;height:460px;margin-top: 15px;margin-left: 10px;padding-left: 5px;padding-top: 5px;">

</div>
<div id="lynn-salary-Asign-emp-3" style="float:left;   overflow:auto;border-width: 2px;border-style: groove;border-color: rgb(238,244,245); width: 380px;height:460px;margin-top: 15px;margin-left: 10px;padding-left: 5px;padding-top: 5px;">
	<div style="font-size: 14px;">当前选择的用户:<span id="lynn-salary-Asign-emp-4" style="color: blue;font-size: 14px;"></span></div>
	<div id="lynn-salary-Asign-emp-4af">
		
	</div>
</div>

<div id="lynn-salary-Asign-sys-6" style="float:left;   overflow:auto; width: 380px;height:460px;margin-top: 15px;margin-left: 10px;padding-left: 5px;padding-top: 5px;">
		<h1>选择方式</h1><br>
		<div class="tabs" currentIndex="0" eventType="hover" >
		<div class="tabsHeader">
			<div class="tabsHeaderContent">
				<ul>
					<li><a href="javascript:;"><span>工资制度(快速分配 )</span></a></li>
					<li><a href="javascript:;"><span>工资项(详细配置 )</span></a></li>
				</ul>
			</div>
		</div>
		<div class="tabsContent" style="height:360px;">
			<div id="lynn-assigntype-2332" style="overflow:hidden; ">


			</div>
			<div id="lynn-assigntype-2w4s" style="overflow:hidden; ">


			</div>
		</div>
		<div class="tabsFooter">
			<div class="tabsFooterContent"></div>
		</div>
	</div>
</div>
<script>
if(typeof lynn == "undefined") {
	lynn = {};
}
lynn.curEmpCb2323 = function (t,ta,ad) {
	
}

var detailClick = function (type,typeId,name) {
	//alert(type+typeId+name);
	if(typeof lynn.curEmpCb2323 == "undefined") return;
	lynn.curEmpCb2323(type,typeId,name);
}
var quickClick = function (type,typeId,name) {
	//alert(type+typeId+name);
	if(typeof lynn.curEmpCb2323 == "undefined") return;
	lynn.curEmpCb2323(type,typeId,name);
}

var addEmpLis = function () {
	lynnAddLis(empClick);
}
var empClick = function (type,objid,empname) {
	if(type == "dep") return;
	$.ajax({
		  url: "<%=basePath%>emp!curEmp.do?empId="+objid+"&empName="+empname
		}).done(function ( data ) {
			$("#lynn-salary-Asign-emp-4").html(empname);
			$("#lynn-salary-Asign-emp-4af").html(data);
		});
}

var showEmpTree = function (cb) {
	$.ajax({
		  url: "<%=basePath%>emp!showTree.do"
		}).done(function ( data ) {
			$("#lynn-salary-Asign-9").html(data);
			lynnInitTree();
			if(typeof cb != "undefined")
			cb();
		});
}

$.ajax({
	url:"<%=basePath%>emp!detailCfg.do"
}).done(function(data){
	$("#lynn-assigntype-2w4s").html(data);
	lynn.addDetailLis(detailClick);
});

$.ajax({
	url:"<%=basePath%>emp!quickCfg.do"
}).done(function(data){
	$("#lynn-assigntype-2332").html(data);
	lynn.addQuickLis(quickClick);
});


showEmpTree(addEmpLis);
</script>
